﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace MesProjectWinform.Production.Models
{
    public class WORKORDERMODEL
    {
        public long WORKORDERID { get; set; }

        /// <summary>
        /// Desc:工单编码
        /// Default:
        /// Nullable:True
        /// </summary>           
        public string WORKORDERCODE { get; set; }

        /// <summary>
        /// Desc:工单类型(数据字典)
        /// Default:
        /// Nullable:True
        /// </summary>           
        public string WORKORDERTYPEID { get; set; }

        /// <summary>
        /// Desc:产品主数据(产品物料实体表)
        /// Default:
        /// Nullable:True
        /// </summary>           
        public decimal? PRODUCTMASTERDATAID { get; set; }

        /// <summary>
        /// Desc:工艺路线(工艺路线实体表)
        /// Default:
        /// Nullable:True
        /// </summary>           
        public string ROUTINGID { get; set; }

        /// <summary>
        /// Desc:产线(产线管理实体表)
        /// Default:
        /// Nullable:True
        /// </summary>           
        public decimal? PRODUCTIONLINEID { get; set; }

        /// <summary>
        /// Desc:计划结束时间
        /// Default:
        /// Nullable:True
        /// </summary>           
        public DateTime? WORKORDERTIME { get; set; }

        /// <summary>
        /// Desc:状态
        /// Default:
        /// Nullable:True
        /// </summary>           
        public string WORKORDERSTATUS { get; set; }

        /// <summary>
        /// Desc:工序进度
        /// Default:
        /// Nullable:True
        /// </summary>           
        public string PROCESSPROGRESS { get; set; }

        /// <summary>
        /// Desc:数量
        /// Default:
        /// Nullable:True
        /// </summary>           
        public long? WORKORDERNUM { get; set; }

        /// <summary>
        /// Desc:是否允许跳工序
        /// Default:
        /// Nullable:True
        /// </summary>           
        public bool WORKORDERISNO { get; set; }

        /// <summary>
        /// Desc:附件
        /// Default:
        /// Nullable:True
        /// </summary>           
        public string WORKORDERANNEX { get; set; }

        /// <summary>
        /// Desc:备注
        /// Default:
        /// Nullable:True
        /// </summary>           
        public string WORKORDERREMARK { get; set; }

        /// <summary>
        /// Desc:创建人
        /// Default:
        /// Nullable:True
        /// </summary>           
        public string CREATEBY { get; set; }

        /// <summary>
        /// Desc:修改人
        /// Default:
        /// Nullable:True
        /// </summary>           
        public string UPDATEBY { get; set; }

        /// <summary>
        /// Desc:创建时间
        /// Default:
        /// Nullable:True
        /// </summary>           
        public DateTime? CREATETIME { get; set; }

        /// <summary>
        /// Desc:修改时间
        /// Default:
        /// Nullable:True
        /// </summary>           
        public DateTime? UPDATETIME { get; set; }

        /// <summary>
        /// Desc:逻辑删除
        /// Default:
        /// Nullable:True
        /// </summary>           
        public bool ISDELETED { get; set; }

        /// <summary>
        /// Desc:已完成数量
        /// Default:
        /// Nullable:True
        /// </summary>           
        public long? COMPLETEDNUM { get; set; }

        /// <summary>
        /// Desc:进度
        /// Default:
        /// Nullable:True
        /// </summary>           
        public string PROGRESS { get; set; }

        /// <summary>
        /// Desc:实际开始时间
        /// Default:
        /// Nullable:True
        /// </summary>           
        public DateTime? ACTUALSTARTTIME { get; set; }

        /// <summary>
        /// Desc:实际结束时间
        /// Default:
        /// Nullable:True
        /// </summary>           
        public DateTime? ACTUALENDTIME { get; set; }

        /// <summary>
        /// Desc:投入数量
        /// Default:
        /// Nullable:True
        /// </summary>           
        public long? QUANTITYNUM { get; set; }

        /// <summary>
        /// Desc:良品数量
        /// Default:
        /// Nullable:True
        /// </summary>           
        public long? GOODNUM { get; set; }

        /// <summary>
        /// Desc:报废数量
        /// Default:
        /// Nullable:True
        /// </summary>           
        public long? FAILNUM { get; set; }

        /// <summary>
        /// Desc:来源
        /// Default:
        /// Nullable:True
        /// </summary>           
        public string SOURCE { get; set; }

        /// <summary>
        /// Desc:源工单号
        /// Default:
        /// Nullable:True
        /// </summary>           
        public string TICKETNUMBER { get; set; }

        /// <summary>
        /// Desc:客户
        /// Default:
        /// Nullable:True
        /// </summary>           
        public string WORKCUSTOMER { get; set; }

        /// <summary>
        /// Desc:计划开始时间
        /// Default:NULL
        /// Nullable:True
        /// </summary>           
        public DateTime? WORKSTARTTIME { get; set; }

        /// <summary>
        /// Desc:计划起止时间冗余字段
        /// Default:
        /// Nullable:True
        /// </summary>           
        public string TIME { get; set; }

        /// <summary>
        /// Desc:产线冗余字段
        /// Default:
        /// Nullable:True
        /// </summary>           
        public string PRODUCTIONLINENAME { get; set; }

        /// <summary>
        /// Desc:工艺路线冗余字段
        /// Default:
        /// Nullable:True
        /// </summary>           
        public string ROUTINGNAME { get; set; }

        /// <summary>
        /// Desc:产品主数据冗余字段
        /// Default:
        /// Nullable:True
        /// </summary>           
        public string PRODUCTMASTERDATANAME { get; set; }
        public bool IsSelected { get; set; }
    }
}
